/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.sd.service;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.sd.dao.UppUnitDao;
import com.jeesite.modules.sd.entity.UppUnit;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 上级来文单位Service
 * @author zhanchj
 * @version 2020-07-01
 */
@Service
@Transactional(readOnly=true)
public class UppUnitService extends CrudService<UppUnitDao, UppUnit> {
	
	/**
	 * 获取单条数据
	 * @param uppUnit
	 * @return
	 */
	@Override
	public UppUnit get(UppUnit uppUnit) {
		return super.get(uppUnit);
	}
	
	/**
	 * 查询分页数据
	 * @param uppUnit 查询条件
	 * @param uppUnit.page 分页对象
	 * @return
	 */
	@Override
	public Page<UppUnit> findPage(UppUnit uppUnit) {
		return super.findPage(uppUnit);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param uppUnit
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(UppUnit uppUnit) {
		super.save(uppUnit);
	}
	
	/**
	 * 更新状态
	 * @param uppUnit
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(UppUnit uppUnit) {
		super.updateStatus(uppUnit);
	}
	
	/**
	 * 删除数据
	 * @param uppUnit
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(UppUnit uppUnit) {
		super.delete(uppUnit);
	}
	
}